.container
  = render 'op_header_return'
  #search-container{:style => 'margin-top: 5px;'}
    .search-product-form
      .search-product-inner{:style => 'margin: 0px 4px 5px 4px;'}
        %span.search-icon
          = image_tag "/root/search.png"
        .search_input_div
          %input#search_input{:type => 'search' ,:class=> 'search_input',:placeholder=>'输入关键字搜索商品',:required=>'',:onsearch=>"search_product('#{@category_id}');"}
  -if @product_list.length > 0
    #sale-hot-container
      -@product_list.each_index do |index|
        -if index%3==0
          .product-item
            - @product_list[index,3].each do |product|
              .product-cell
                .product-inner
                  .product-img
                    %a.product_img_href{:href => "javascript:product_show('#{product.id.to_s}')"}
                      = image_tag product.avatar_url
                  .product-title
                    = product.current_title
                  .product-sale
                    %span.price
                      = "¥ #{product.current_price}"
                    %a.cart{:href => "javascript:add_product_to_cart('#{product.id.to_s}',1)"}
                      = image_tag "/root/icon_add_cart.png"
  -else
    .weui_msg
      .weui_icon_area
        %i.weui_icon_info.weui_icon_msg
      .weui_text_area
        %h2.weui_msg_title
          操作提示
        %p.weui_msg_desc
          没有符合条件的商品，再次搜索试试！！
      .weui_opr_area
        %p.weui_btn_area
          %a{:href => '/',:class =>'weui_btn weui_btn_default' }
            返回首页

  /底部
  = render 'foot'

  /商品分类
  = render 'category'

  /购物车
  = render 'shoppingcart'
